package com.yami.shop.bean.param;

import com.yami.shop.bean.model.Post;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "创建帖子参数")
public class CreatePostParam {
    @Schema(description = "帖子内容")
    @NotBlank(message = "内容不能为空")
    private String content;

    @Schema(description = "URL地址")
    private String mediaUrl;


    @Schema(description = "关联话题Id")
    private Long topicId;

    private String userId; // 自动注入不暴露给前端
}


